import _fetch from '@/api/request.js'

function getUserInfoApi(data) {
    return _fetch({
        url: "/info",
        method: "get",
        withCredentials: true,
        params: { "token": data },
    })
}

function logoutApi() {
    return _fetch({
        url: "/logout",
        method: "get",
        withCredentials: true,
    })
}

export { getUserInfoApi, logoutApi };